package model

import (
	"time"

	"gorm.io/gorm"
)

type Bookmark struct {
	ID         uint           `gorm:"primarykey" json:"id"`
	CreatedAt  time.Time      `json:"created_at"`
	UpdatedAt  time.Time      `json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"index" json:"deleted_at"`
	BookmarkID string         `json:"bookmark_id"`
	Title      string         `json:"title"`
	Index      int            `json:"index"`
	DateAdded  uint           `json:"date_added"`
	Type       string         `json:"type"`
	URL        string         `json:"url"`
	ParentID   string         `json:"parent_id"`
}

type BookmarkOperate struct {
	ID         uint           `gorm:"primarykey" json:"id"`
	CreatedAt  time.Time      `json:"created_at"`
	UpdatedAt  time.Time      `json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"index" json:"deleted_at"`
	Operate    string         `json:"operate"`
	BookmarkID string         `json:"bookmark_id"`
	Message    string         `json:"message"`
}
